/**
 * Created by lan on 17/2/10.
 */
import Vue from 'vue';
import VueRouter from 'vue-router';

import App from "./app.vue";//入口
import Home from "./pages/home/home.vue"
import Member from "./pages/member/member.vue"
import Class from "./pages/class/class.vue"
import Shop from "./pages/shop/shop.vue"
import My from "./pages/my/my.vue"

Vue.use(VueRouter);

const router = new VueRouter({
    routes:[
        {path:"/home",component:Home},
        {path:"/member",component:Member},
        {path:"/class",component:Class},
        {path:"/shop",component:Shop},
        {path:"/my",component:My},
]
});

router.push("home");

new Vue({
    router,
    render:h=>h(App)
}).$mount("#app");